package net.zjitc.dao;

import java.util.List;
import net.zjitc.pojo.Order;
import net.zjitc.pojo.Orderitem;
import org.springframework.stereotype.Component;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/5/17 14:26
 * @description:
 */
@Component
public interface OrderDao {

  int add(Order order);

  List<Order> findByUid(Integer uid);

  List<Orderitem> findOrderitemByOid(String oid);

  Integer findPidByItemid(int itemid);

  int orderitem(Orderitem o);


  List<Order> findAll();

  Integer editState(Order order);

  Integer editOsatate(Orderitem orderitem);

  Integer editOstateByItemid(Integer itemid);
}
